package com.xugou.service;

import com.xugou.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xugou
 * @date 2021/11/11  17:17
 */
public interface BookService {
    //增加一本书
    int addBook(Books book);
    //根据id删除一本书
    int deleteBookById(int id);
    //更新一本书
    int updateBook(Books book);
    //根据id查询一本书
    Books queryBookById(int id);
    //查询所有的书
    List<Books> queryAllBook();
    //通过书名进行查找
    Books queryBookByName(String bookName);
}
